<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<!-- Copyright 1997 The Open Group, All Rights Reserved -->
<title>line</title>
</head><body bgcolor=white>
<center>
<font size=2>
The Single UNIX &reg; Specification, Version 2<br>
Copyright &copy; 1997 The Open Group

</font></center><hr size=2 noshade>
<h4><a name = "tag_001_014_1099">&nbsp;</a>NAME</h4><blockquote>
line - read one line (<b><a href="intro.html#tag_001_003_003">LEGACY</a></b>)
</blockquote><h4><a name = "tag_001_014_1100">&nbsp;</a>SYNOPSIS</h4><blockquote>
<pre><code>

line 
</code>
</pre>
</blockquote><h4><a name = "tag_001_014_1101">&nbsp;</a>DESCRIPTION</h4><blockquote>
The
<i>line</i>
utility copies one line (up to and including a newline) from the
standard input and writes it to standard output.
It always writes at least a newline.
</blockquote><h4><a name = "tag_001_014_1102">&nbsp;</a>OPTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1103">&nbsp;</a>OPERANDS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1104">&nbsp;</a>STDIN</h4><blockquote>
The standard input is a text file.
</blockquote><h4><a name = "tag_001_014_1105">&nbsp;</a>INPUT FILES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1106">&nbsp;</a>ENVIRONMENT VARIABLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1107">&nbsp;</a>ASYNCHRONOUS EVENTS</h4><blockquote>
Default.
</blockquote><h4><a name = "tag_001_014_1108">&nbsp;</a>STDOUT</h4><blockquote>
The standard output is a text file consisting of one line.
</blockquote><h4><a name = "tag_001_014_1109">&nbsp;</a>STDERR</h4><blockquote>
Used only for diagnostic messages.
</blockquote><h4><a name = "tag_001_014_1110">&nbsp;</a>OUTPUT FILES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1111">&nbsp;</a>EXTENDED DESCRIPTION</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1112">&nbsp;</a>EXIT STATUS</h4><blockquote>
Exit status is:
<dl compact>

<dt>0<dd>Successful completion.

<dt>&gt;0<dd>End-of-file on input.

</dl>
</blockquote><h4><a name = "tag_001_014_1113">&nbsp;</a>CONSEQUENCES OF ERRORS</h4><blockquote>
Default.
</blockquote><h4><a name = "tag_001_014_1114">&nbsp;</a>APPLICATION USAGE</h4><blockquote>
The
<i>line</i>
utility is often used within command scripts to
read from the user's terminal.
<p>
Applications should migrate to the
<i><a href="read.html">read</a></i>
utility.
</blockquote><h4><a name = "tag_001_014_1115">&nbsp;</a>EXAMPLES</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1116">&nbsp;</a>FUTURE DIRECTIONS</h4><blockquote>
None.
</blockquote><h4><a name = "tag_001_014_1117">&nbsp;</a>SEE ALSO</h4><blockquote>
<i><a href="read.html">read</a></i>.
</blockquote><hr size=2 noshade>
<center><font size=2>
UNIX &reg; is a registered Trademark of The Open Group.<br>
Copyright &copy; 1997 The Open Group
<br> [ <a href="../index.html">Main Index</a> | <a href="../xshix.html">XSH</a> | <a href="../xcuix.html">XCU</a> | <a href="../xbdix.html">XBD</a> | <a href="../cursesix.html">XCURSES</a> | <a href="../xnsix.html">XNS</a> ]

</font></center><hr size=2 noshade>
</body></html>
